package com.wl.cloud.system.support.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author: wanglin
 * @date: 2023-09-18 周一
 * @Version: 1.0
 * @Description:
 */
@Data
@Schema(description = "修改密码DTO")
public class PasswordDTO {
    @NotBlank(message = "账号不能为空")
    @Schema(required = true, description = "账号")
    private String userId;

    @Size(min = 6, max = 16, message = "密码长度为6~16个字符")
    @NotBlank(message = "旧密码不能为空")
    @Schema(required = true, description = "旧密码")
    private String oldPassword;

    @Size(min = 6, max = 16, message = "新密码长度为6~16个字符")
    @NotBlank(message = "新密码不能为空")
    @Schema(required = true, description = "新密码,密码至少包含：数字,英文,字符中的两种以上，长度为6~16个字符")
    private String newPassword;

    @Size(min = 6, max = 16, message = "确认密码长度为6~16个字符")
    @NotBlank(message = "确认密码不能为空")
    @Schema(required = true, description = "确认密码")
    private String confirmPassword;
}
